<template>
	<view class="container">
		<!-- 基础用法 -->
		<view v-for="(item,index) in baseFormData">
			<uni-card :title="item.xm" :sub-title="'医疗组:'+item.hzdeptname" :extra="'编号：'+item.bh" :thumbnail="avatar" @click="onClick">
				<text class="uni-body">伤部:{{item.sb}}</text>
				<text class="uni-body">伤类:{{item.sl}}</text>
				<text class="uni-body">伤型:{{item.sx}}</text>
				<text class="uni-body">并发症:{{item.bfz}}</text>
				<text class="uni-body">伤势:{{item.ss}}</text>
				<text class="uni-body">伤票类型:{{item.splx}}</text>
				<button style="color: #fff; background-color: #474700; margin-left: 10%;" size="mini" @click="circulation(item)">流转</button>
				<!-- <button style="color: #fff; background-color: #474700; margin-left: 10%;" size="mini" @click="orders(item)">医嘱</button> -->
				<button style="color: #fff; background-color: #474700; margin-left: 10%;" size="mini" @click="nursing(item)">护理</button>
				<button style="color: #fff; background-color: #474700; margin-left: 10%;" size="mini" @click="illness(item)">病情</button>
				<button style="color: #fff; background-color: #474700; margin-left: 10%;" size="mini" @click="evacuation(item)">后送</button>
			</uni-card>
		</view>
	</view>
</template>

<script>
	import { getStorageSync,useRouter } from '../../utils/utils.js'
	export default {
		data() {
			return {
				baseFormData:[]
			}
		},
		onLoad(){
			this.baseFormData=getStorageSync('baseFormData')
			console.log(this.baseFormData);
		},
		methods: {
			onClick(item){
				useRouter('/pages/offlineWounded/index', item, 'navigateTo')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.uni-body{
		display:block
	}
.container {

		.no {
			color: #999;
			font-size: 24rpx;
			text-align: center;
			padding: 30rpx;
		}

		.action-item {
			height: 102rpx;
			line-height: 1.7;
			background-color: #fefefe;
			box-shadow: inset 0rpx 44rpx 102rpx #efefef;
			
			.list {
				padding: 0rpx 34rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.left {
					display: flex;
					align-items: center;

					.text {}
				}

				.right {
					font-size: 18rpx;
				}
			}
		}
	}
</style>
